<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简单电商平台首页</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }

        header {
            background-color: #333;
            color: white;
            padding: 20px;
            text-align: center;
        }

        nav {
            background-color: #444;
            color: white;
        }

        nav ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
        }

        nav ul li {
            margin: 0 15px;
        }

        nav ul li a {
            color: white;
            text-decoration: none;
        }

        .slider {
            width: 100%;
            height: 400px;
            background-color: #f0f0f0;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .products {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding: 20px;
        }

        .product {
            width: 200px;
            margin: 20px;
            border: 1px solid #ccc;
            padding: 10px;
            text-align: center;
        }

        .product img {
            width: 100%;
            height: auto;
        }

        footer {
            background-color: #333;
            color: white;
            text-align: center;
            padding: 10px;
        }
    </style>
</head>
<body>
    <header>
        <h1>简单电商平台</h1>
    </header>
    <nav>
        <ul>
            <li><a href="#">首页</a></li>
            <li><a href="#">商品分类</a></li>
            <li><a href="/login.html">登录</a></li>
            <li><a href="/register.html">注册</a></li>
        </ul>
    </nav>
    <div class="slider">
        <p>这里是轮播图区域</p>
    </div>
    <div class="products">
        <div class="product">
            <img src="/image/1.jpg" alt="商品1">
            <h3>商品1</h3>
            <p>这是商品1的描述</p>
            <p>价格: $100</p>
            <button>加入购物车</button>
        </div>
        <div class="product">
            <img src="/image/2.jpg" alt="商品2">
            <h3>商品2</h3>
            <p>这是商品2的描述</p>
            <p>价格: $200</p>
            <button>加入购物车</button>
        </div>
        <div class="product">
            <img src="https://img1.baidu.com/it/u=745164750,3114605259&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1067" alt="商品3">
            <h3>商品3</h3>
            <p>这是商品3的描述</p>
            <p>价格: $300</p>
            <button>加入购物车</button>
        </div>
    </div>
    <footer>
        <p>版权所有 &copy; 2025 简单电商平台</p>
    </footer>
</body>
</html>
    
<!--默认首页-->